#ifndef __MYHEAD_H_
#define __MYHEAD_H_

#include <stdio.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
#include <dirent.h>
#include <pthread.h>


//========================
#include <linux/input.h>
#include "desktop.h"

extern int lcd_fd;
extern int ts_fd;

#define TAN30			0.577		//tan30°
#define THRESHOLD_SPEED 0.3			//一个像素每毫秒
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
//========================

#define LCD_PATh "/dev/fb0"
#define TS_PATH "/dev/event0"

int choose_game(void);
void temperature(void);
void photo_album(void);

#endif